using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Gizmox.WebGUI.Client.Controllers;
using Gizmox.WebGUI.Common.Interfaces;

namespace Controls
{
    /// <summary>
    /// Class that make relation between Web Control and Window Control
    /// </summary>
    public class CodeTextAreaController : ControlController
    {
        public CodeTextAreaController(IContext objContext,object objWebControl,object objWinControl) : base(objContext,objWebControl,objWinControl)
        {
        }

        public CodeTextAreaController(IContext objContext, object objWebControl) : base(objContext, objWebControl)
        {
        }

        protected override void InitializeController()
        {
            base.InitializeController();
        }

        protected override object CreateTargetObject(object objWebObject)
        {
            return new Label();
        }

        protected override void OnSourceObjectPropertyChange(ObservableItemPropertyChangedArgs objPropertyChangeArgs)
        {
            base.OnSourceObjectPropertyChange(objPropertyChangeArgs);

            //switch (objPropertyChangeArgs.Property)
            //{

            //}
        }

        public CodeTextArea WebCodeTextArea
        {
            get
            {
                return this.SourceObject as CodeTextArea;
            }
        }

        public Button WinCodeTextArea
        {
            get
            {
                return this.TargetObject as Button;
            }
        }
    }
}
